package vip.bblog.elasticsearch.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.bblog.common.utils.BaseResult;

/**
 * <p>
 * 文章表 前端控制器
 * </p>
 *
 * @author yuyong
 * @since 2019-06-12
 */
@RestController
@RequestMapping("/article")
public class BlogArticleController {

    @Autowired
    private ElasticsearchTemplate elasticsearchTemplate;

    @GetMapping
    BaseResult<String> search() {

        return BaseResult.successWithData("操作成功");
    }

}
